package models

import "time"

// 订单
type Order struct {
	Id                  int64     `orm:"description(自增主键)"`
	User                *User     `orm:"null;default(0);rel(fk);description(用户Id)"`
	SetMeal             *SetMeal  `orm:"null;default(0);rel(fk);description(套餐Id)"`
	SetMealName         string    `orm:"description(套餐名称)"`
	SetMealIntroduce    string    `orm:"description(套餐介绍)"`
	SetMealPrice        float64   `orm:"digits(12);decimals(2);description(套餐价格)"`
	SetMealPushNum      int       `orm:"description(套餐推送次数)"`
	SetMealExcellentNum int       `orm:"description(套餐优选个数)"`
	SetMealAssistNum    int       `orm:"description(套餐辅选个数)"`
	Created             time.Time `orm:"auto_now_add;type(datetime);description(创建时间)"`
	CreatedShow         string    `orm:"-"`
	CreatedDateShow     string    `orm:"-"`
}
